﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.FxCop.Sdk;

namespace FxCopContrib
{
    /// <summary>
    /// Base rule for all rules in the FxCop contrib libary
    /// </summary>
    public abstract class RuleBase : BaseIntrospectionRule
    {
        /// <summary>
        /// Default constructor which takes care of rules.xml resolving
        /// </summary>
        /// <remarks>
        /// This constructor passes the Assembly instance for the rules.xml lookup and the base
        /// namespace in which the rules.xml resource is stored.
        /// </remarks>
        /// <param name="name"></param>
        protected RuleBase(string name)
            : base(name, "FxCopContrib.Rules", typeof(RuleBase).Assembly)
        {
        }
    }
}
